<template>
  <header>
    <span>{{ title }}</span>
    <span class="iconfont icon-ziyuan"></span>
  </header>
</template>

<script>
export default {
  props: {
    title: String,
  },
};
</script>

<style scoped lang="less">
/* scoped表示作用域， 这里写的样式只会影响这个组件 */
@import "../../../../assets/css/var.less";
header {
  width: 375px;
  height: 50px;
  background: @theme-color;
  color: @white-color;
  .center();
  font-size: @l-font;
  position: relative;

  .iconfont {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: @xl-font;
  }
}
</style>
